<!DOCTYPE html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
        String path = request.getContextPath();
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script type="text/javascript">
	function submit_edit_tch_form(){
	$.post("editInfoAction!saveStudentInfo",$("#edit_stu").serialize(),function(data){
		$(".content").html(data);
	
	});

}
</script>
<s:action name="getStudentRequest"></s:action>
<s:set name="stu" value="#request.stu"/>
  

	<div class="account_info">
    	<img src="pic/photo.jpg" class="user_photo" />
        <ul>
        	<li><span>  <s:property value="#stu.name"/></span><span><s:property value="#stu.sex"/></span></li>
            <li><s:property value="#stu.email"/>@whu.edu.cn</li>
        </ul>
    </div>
    <hr class="line" />
    <div class="details">
    <s:form theme="simple" id="edit_stu" method="post"  >

    	<h>基本资料</h>
    	<ul>
        	<li><strong>*</strong><span>学院:</span>
        		<s:textfield theme="simple" name="student.faculty" value="%{#stu.faculty}"></s:textfield>
    		</li>
    		
        <!--     <select name="school">
            <option value="国际软件学院">国际软件学院</option>
            </select>
		 -->
            
            <li><strong>*</strong><span>年级：</span>
            	 <s:select theme="simple" list="{'2011','2010','2009','2008','2007','2006','2005','2004','2003'}" name="student.grade" value="#stu.grade"></s:select>
  			 </li>
         <!-- 
            <select name="year">
            <option value="2009">2009级</option>
            </select>
            --> 
            
            <li><strong>&nbsp;</strong><span>电话：</span><s:textfield  theme="simple" name="student.phone" value="%{#stu.phone}"></s:textfield>  </li>
            <li><strong>*</strong><span>邮件：</span><s:textfield theme="simple"  name="student.regularEmail" value="%{#stu.regularEmail}"></s:textfield></li>
            <li><strong>*</strong><span>状态：</span>
             	<s:radio theme="simple" label="状态" list="{'忙碌','空闲'}" name="student.status" value="%{#stu.status}"></s:radio>
            </li>
  			<li><strong>*</strong><span>性格：</span><br/> <s:textarea  theme="simple" name="student.introduce " value="%{#stu.introduce}" ></s:textarea></li>
       </ul>     
  	<!-- 
            <select name="status">
            <option value="忙碌">忙碌</option>
            </select>
             -->
 <h>专业相关</h>
        <ul>
        	<li><strong>*</strong><span>科研经历：</span><br />
            	<s:textarea name="student.experience " value="%{#stu.experience}"></s:textarea>
            </li>
            <li><strong>*</strong><span>专业擅长：</span><br />
            	<s:textarea name="student.skill" value="%{#stu.skill}"></s:textarea>
            </li>
        </ul>
        <input type="button" value="保存修改" name="submit_btn" onclick="submit_edit_tch_form()" /><input type="reset" value="取消" />
    </s:form>
    </div>